package com.zyt.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyt.common.utils.PageUtils;
import com.zyt.common.vo.MemberUserLoginVo;
import com.zyt.common.vo.SocialUser;
import com.zyt.mall.member.entity.MemberEntity;
import com.zyt.mall.member.exception.PhoneExistException;
import com.zyt.mall.member.exception.UsernameExistException;
import com.zyt.mall.member.vo.MemberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author shabi
 * @email 3518261309@qq.com
 * @date 2024-05-13 08:45:10
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;
    void checkUsernameUnique(String username) throws UsernameExistException;
    MemberEntity login(MemberUserLoginVo vo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

